import request from '@/utils/request'

export function getOrderList(params) {
	return request({
		url: '/order/list',
		method: 'get',
		params: params
	})
}
export function getOrderDetail(params) {
	return request({
		url: '/order/detail',
		method: 'get',
		params: params
	})
}
export function getOrderCode(params) {
	return request({
		url: '/order/code/list',
		method: 'get',
		params: params
	})
}
export function getOrderStatus() {
	return request({
		url: '/order/status/list',
		method: 'get'
	})
}
export function getRefundMoney(params) {
	return request({
		url: 'order/refund/apply/amount',
		method: 'get',
		params: params
	})
}
export function applyRefund(params) {
	return request({
		url: 'order/refund/apply',
		method: 'post',
		data: params
	})
}
export function download(params) {
	return request({
		url: '/order/excel/list',
		method: 'get',
		params: params
	})
}




